﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Templay
{
    /// <summary>
    /// All string extension methods
    /// </summary>
    internal static class StringExtension
    {

        /// <summary>
        /// Convert string to byte array
        /// </summary>
        /// <param name="s">String to convert</param>
        /// <returns>The byte array</returns>
        internal static byte[] ToByteArray(this string s)
        {
            return new UTF8Encoding().GetBytes(s);
        }

    }
}
